HTTPSocket.GetHeaders Method

Requests only the page headers from the specified URL. If the optional Timeout parameter (seconds) is used, REALbasic will wait the specified number of seconds for the headers.

Syntax

HTTPSocket.GetHeaders URL, [Timeout]


Parameters

URL

String

Timeout (Optional)

Integer


When using the Timeout parameter, the headers will be retrieved in a synchronous manner. If Timeout is set to zero, then there will be no timeout period and the socket will wait until it receives the headers or gets an error. Set the Yield property to True to allow for background activities while waiting.